<?php /** @var BootActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id'=>'query-condition',
    'type'=>'horizontal',
    'enableClientValidation'=>true,
    'clientOptions'=>array(
        'validateOnSubmit'=>true,
    ),
)); ?>

<fieldset>

    <legend>设置查询条件</legend>
    <?php echo $form->errorSummary($model); ?>
    <?php echo $form->dateFieldRow($model, 'start_date'); ?>
    <?php echo $form->dateFieldRow($model, 'end_date'); ?>
    <?php echo $form->textFieldRow($model, 'file_md5'); ?>

</fieldset>
<div class="form-actions">
    <?php $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType'=>'ajaxSubmit', 
        'type'=>'primary', 
        'icon'=>'ok white', 
        'label'=>'确 定',
        'url'=>array('job/condition','render'=>false),
        'ajaxOptions'=>array('success'=>'js: function(data) {
            $("#Job_query_condition").val(data);
            $("#conditionDialog").dialog("close");
            }'
        ),
    )); ?>
    <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'reset', 'icon'=>'remove', 'label'=>'取 消')); ?>
</div>
<?php $this->endWidget(); ?>
